package com.atnjupt.service;

import com.atnjupt.bean.Book;
import com.atnjupt.bean.Page;

import java.util.List;

/**
 * @author Wizarder
 * @create 2021-06-04 20:09
 */
public interface BookService {
    void addBook(Book book);

    void deleteBookById(int id);

    void updateBook(Book book);

    Book queryBookById(int id);

    List<Book> queryBooks();

    Page<Book> page(int pageNo,int pageSiez);

    int pageTotalCount();

    Page<Book> pageByPrice(int pageNo, int pageSize, int min, int max);
}
